package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcFklogMapper;
import com.ruoyi.gcgl.domain.GcFklog;
import com.ruoyi.gcgl.service.IGcFklogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 付款台账Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-02
 */
@Service
public class GcFklogServiceImpl implements IGcFklogService 
{
    @Autowired
    private GcFklogMapper gcFklogMapper;

    /**
     * 查询付款台账
     * 
     * @param id 付款台账主键
     * @return 付款台账
     */
    @Override
    public GcFklog selectGcFklogById(Long id)
    {
        return gcFklogMapper.selectGcFklogById(id);
    }

    /**
     * 查询付款台账列表
     * 
     * @param gcFklog 付款台账
     * @return 付款台账
     */
    @Override
    public List<GcFklog> selectGcFklogList(GcFklog gcFklog)
    {
        return gcFklogMapper.selectGcFklogList(gcFklog);
    }

    /**
     * 新增付款台账
     * 
     * @param gcFklog 付款台账
     * @return 结果
     */
    @Override
    public int insertGcFklog(GcFklog gcFklog)
    {
        return gcFklogMapper.insertGcFklog(gcFklog);
    }

    /**
     * 修改付款台账
     * 
     * @param gcFklog 付款台账
     * @return 结果
     */
    @Override
    public int updateGcFklog(GcFklog gcFklog)
    {
        return gcFklogMapper.updateGcFklog(gcFklog);
    }

    /**
     * 批量删除付款台账
     * 
     * @param ids 需要删除的付款台账主键
     * @return 结果
     */
    @Override
    public int deleteGcFklogByIds(String ids)
    {
        return gcFklogMapper.deleteGcFklogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除付款台账信息
     * 
     * @param id 付款台账主键
     * @return 结果
     */
    @Override
    public int deleteGcFklogById(Long id)
    {
        return gcFklogMapper.deleteGcFklogById(id);
    }
}
